/**
 * 郭楠project
 * com.gn.service
 * XcxMarketServiceImpl.java
 * 创建人:TonyGuo 
 * 时间：2017年1月10日-下午9:12:18 
 * 2017Tm公司-版权所有
 */
package com.gn.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service;

import com.gn.entity.XcxMarket;
import com.gn.mongo.dao.XcxMarketDao;

/**
 * 
 * XcxMarketServiceImpl
 * 创建人:TonyGuo
 * 时间：2017年1月10日-下午9:12:18 
 * @version 1.0.0
 * 
 */
@Service
public class XcxMarketServiceImpl implements XcxMarketService {
	@Resource
	private XcxMarketDao xcxMarketDao;

	@Override
	public void save(XcxMarket xcxMarket) {
		xcxMarketDao.save(xcxMarket);
	}

	@Override
	public void delete(String id) {
		xcxMarketDao.delete(id);
	}

	@Override
	public XcxMarket findById(String id) {
		return xcxMarketDao.get(id);
	}

	@Override
	public void update(XcxMarket xcxMarket) {

	}

	@Override
	public List<XcxMarket> findAll() {
		return xcxMarketDao.findAll();
	}
	
	public long count(){
		return xcxMarketDao.count();
	}


}
